package qreasymarket.movil;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;

public class MenuActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.submenu_uno);
		Toast tt = Toast.makeText(getBaseContext(),"Ingresa a menu para ver las opciones", Toast.LENGTH_LONG);
		tt.show();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {

		MenuInflater inflater = getMenuInflater();
		inflater.inflate(R.menu.menu, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		if (item.getItemId() == R.id.loginService) {
			startActivity(new Intent(MenuActivity.this,LoginClienteActivity.class));
			return (true);
		}

		return (super.onOptionsItemSelected(item));
	}

}
